Skip to content

Ethernet: Fix out of bounds memset on reset DHCP lease #3307

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

scop
Copy link
Contributor

@scop scop commented May 30, 2017

No description provided.

@scop
Copy link
Contributor Author

scop commented May 30, 2017

See discussion in arduino/Arduino#6337

@scop scop closed this May 30, 2017
@scop scop deleted the dhcp-oob branch May 30, 2017 06:46
@devyte
Copy link
Collaborator

devyte commented May 30, 2017 via email

@scop
Copy link
Contributor Author

scop commented May 30, 2017

Well kind of, I suppose. But then again, the 20 and the out of bounds memset is apparently intentional here, see arduino/Arduino#6337 (i.e. the 20 means sizeof(_dhcpSubnetMask) + sizeof(_dhcpGatewayIp) + sizeof(_dhcpLocalIp) + sizeof(_dhcpDhcpServerIp) + sizeof(_dhcpDnsServerIp) IIUC)

@devyte
Copy link
Collaborator

devyte commented May 30, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants